import request from '@/utils/request'

//添加分校分校信息
export function addSchool(data) {
  return request({
    url: '/admin/addSchool',
    method: 'post',
    data
  });
}

//获取分校列表信息(不分页)
export function schoolList(){
  return request({
    url: '/admin/schoolList',
    method: 'get'
  });
}

//删除分校信息
export function delSchool(data) {
  return request({
    url: '/admin/delSchool',
    method: 'post',
    data
  });
}


//获取特定分校的信息
export function getSchoolInfo(data) {
  return request({
    url: '/admin/getSchoolInfo',
    method: 'get',
    params: data
  });
}

//更新分校的信息
export function updateSchoolInfo(data) {
  return request({
    url: '/admin/updateSchoolInfo',
    method: 'post',
    data
  });
}

//获取分校的场所信息
export function getSchoolPlace(params) {
    return request({
      url: '/admin/getSchoolPlace',
      method: 'get',
      params: params
    });
}

export function delPlace(data) {
  return request({
    url: '/admin/delPlace',
    method: 'post',
    data
  });
}

export function addSchoolPlace(data) {
  return request({
    url: '/admin/addPlace',
    method: 'post',
    data
  });
}

//获取当前分校的所有的评价信息[分页]
export function evaluateList(params){
  return request({
    url: '/admin/evaluateList',
    method: 'get',
    params: params
  });
}

//获取当前分校的所有的意见反馈列表[列表]
export function feedBackList(params) {
  return request({
    url: '/admin/feedBackList',
    method: 'get',
    params: params
  });
}
